﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Common;

public partial class admin_system_systemcatalogmagview : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Expires = -1;
        switch (RequestBase.GetFormString("otype"))
        {
            case "delete":
                Delete();
                break;
        }
    }

    #region 删除
    void Delete()
    {
        string res = "";
        bool bl = true;
        if (!bl)
        {
            res = "只有系统管理员才有执行此操作的权限!";
        }
        else
        {
            if (!Utils.IsNumber(RequestBase.GetFormString("catalogid")))
            {
                res = "参数错误!";
            }
            else
            {
                BLL.CommonBLL.Delete("System_CatalogBase", " CatalogId = " + RequestBase.GetFormString("catalogid"), false);
                res = "succeeded";
            }
        }
        BLL.AjaxHelper.ResponseWrite(res);
    }
    #endregion
}
